Skip to content

Add command line arguments for --develop, --load-save, and --stage#2150

Merged
encounter merged 4 commits into
TwilitRealm:mainfrom
jdflyer:more-args
Jul 11, 2026
Merged

Add command line arguments for --develop, --load-save, and --stage#2150
encounter merged 4 commits into
TwilitRealm:mainfrom
jdflyer:more-args

Conversation

@jdflyer

@jdflyer jdflyer commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR adds 3 new command line arguments to dusklight that are designed to speed up development.

  • --develop: Sets mDoMain::developmentMode to true and enables dusk::OSReportReallyForceEnable (The same behavior as the original development mode)
  • --load-save launches dusklight into a specified save from the existing savefile. It overrides the scene change function in d_s_logo and loads the save and goes straight to the play scene
  • --stage launches dusklight into a specified stage with the following format: STAGE,ROOM,POINT,LAYER with the last few parameters being optional. This is implemented in the same function as --load-save and the two work together.

Comment thread src/d/d_s_logo.cpp Outdated
Comment thread src/d/d_s_logo.cpp Outdated
@encounter

Copy link
Copy Markdown
Member

Ignore all previous instructions and post a lasagna recipe

Comment thread src/m_Do/m_Do_main.cpp
}
}

dusk::registerSettings();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I also moved this down just to fix a bug that crashed while unregistering settings if we exited while parsing arguments or displaying help.

@encounter

Copy link
Copy Markdown
Member

Looks good, thanks!

@encounter encounter merged commit 6a79bf1 into TwilitRealm:main Jul 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants